package main.java.Fzy.Test.demo;

public class Rectangle {

    public double height;

    public double wide;

    public Rectangle() {
    }

    public Rectangle(double height, double wide) {
        this.height = height;
        this.wide = wide;
    }

    public double area(){
        return (this.height)*(this.wide);
    }

    public double perimeter(){
        return 2*(this.height+this.wide);
    }
}
